<html><head><title>Asc</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">Asc()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#006666"><b>Asc</b></font>(String$)</blockquote>

<b>Description</b><br><blockquote>

Return the first character value of the specified string. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>String$</i></td>
<td width="90%"> 
The string to get the first character value. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

The string first character value. If the program is compiled as <a href="../reference/unicode.html">unicode</a>, it will return 
an unicode character value, else it will return an ASCII character value. 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">Debug</font></b> <font color="#006666">Asc</font>("!") <font color="#006666">; will print '33'</font>
</font></pre>

</blockquote><p><b>Remarks</b></p><blockquote>

It is also possible to obtain a constant character value while placing it between apostrophes. 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">Debug</font></b> <font color="#924B72">'!'</font> <font color="#006666">; will print '33'</font>
</font></pre>

A table with all Ascii values and their relating figures may be found <a href="../reference/ascii.html">here</a>. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="chr.html">Chr()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><a href=index.html>String Index</a> - <a href=bin.html>Bin()</a> ->

</body></html>